from flask import Flask
from flask import request
from flask import render_template
from flask import jsonify
from jieba.analyse import extract_tags
import string
import utils

app = Flask(__name__)


@app.route('/')
def index():
    return render_template("index.html")


@app.route("/c1")
def get_c1_data():
    data = utils.get_c1_data()
    return jsonify({"RFCallCnt": data[0], "RFAnsCalls": data[1], "CallsAbandoned": data[2]})



@app.route("/c2")
def get_c2_data():
    data = utils.get_c2_data()
    return


@app.route("/l1")
def get_l1_data():
    data = utils.get_l1_data()
    return



@app.route("/l2")
def get_l1_data():
    data = utils.get_l2_data()
    return


@app.route("/r1")
def get_r1_data():
    data = utils.get_r1_data()
    return


@app.route("/r2")
def get_l1_data():
    data = utils.get_r2_data()
    return






if __name__ == '__main__':
    app.run(host="0.0.0.0", debug=True)
